package protocol;
import GameData.*;

public class QueryItem {
	private Game game;
	private TicketAggregate ticketAggregate;
	private String value;
	private int timeAdded;
	
	public QueryItem(String value, int timeAdded)
	{
		this.value = value;
		this.timeAdded = timeAdded;
	}
	
	public QueryItem(Game g, int timeAdded)
	{
		this.game = g;
		this.timeAdded = timeAdded;
	}
	
	public QueryItem(TicketAggregate ta, int timeAdded)
	{
		this.ticketAggregate = ta;
		this.timeAdded = timeAdded;
	}
	
	public String getValue()
	{
		return value;
	}
	
	public Game getGame()
	{
		return game;
	}
	
	public TicketAggregate getTicketAggregate()
	{
		return ticketAggregate;
	}
	
	public int getTimeAdded()
	{
		return timeAdded;
	}
}
